﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Fit2ModelsFluent;
using FluentNHibernate.Mapping;

namespace Fit2ModelsFluent.Mappings
{
    public class AnswerMap : ClassMap<Answer>
    {
        public AnswerMap()
        {
            Id(x => x.AnswerId);
            Map(x => x.AnswerName);
            Map(x => x.AnswerText);
            Map(x => x.InsertBy);
            Map(x => x.InsertDate);
            Map(x => x.UpdateBy);
            Map(x => x.UpdateDate);
            Map(x => x.RecordStatus);
            HasManyToMany(x => x.Questions).Cascade.All().Inverse().Table("MapQuestionAnswer");
        }
    }
}
